<admintpl file="headerEx"/>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<title>{:L('QQ_CONNECT')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet"/>
<!--ios7-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />

<!--icheck-->
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/red.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/green.css" rel="stylesheet">
</head>
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content">
		<!-- body wrapper start -->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li class="active"><a href="#A" data-toggle="tab"><i class="fa fa-bars"></i>  {:L('QQ_CONNECT')}</a></li>
								<li><a href="#B" data-toggle="tab"><i class="fa fa-bars"></i>  {:L('WEIBO_CONNECT')}</a></li>
								<li><a href="#C" data-toggle="tab"><i class="fa fa-bars"></i>  微信登录设置</a></li>
							</ul>
							</ul>
						</header>
						<div class="panel-body">
							<div class=" form">
								<form class="cmxform form-horizontal adminex-form js-ajax-form" id="commentForm" method="post" action="{:U('oauthadmin/setting_post')}" novalidate="novalidate">
									<input type="hidden" name="term_id" value="{$data.term_id}" />
									<div class="tabbable">
										<div class="tab-content">
											<div class="tab-pane active" id="A">

												<div class="form-group">
													<label for="qq_key" class="control-label col-lg-2">APPkey</label>
													<div class="col-lg-10">
														<input   class=" form-control" id="qq_key" name="qq_key" minlength="1" value="{$Think.config.THINK_SDK_QQ.APP_KEY}" type="text" required="" placeholder="请填写APPkey！">
													</div>
												</div>
												<div class="form-group">
													<label for="qq_sec" class="control-label col-lg-2">APPsecret</label>
													<div class="col-lg-10">
														<input   class=" form-control" id="qq_sec" name="qq_sec" minlength="1" value="{$Think.config.THINK_SDK_QQ.APP_SECRET}" type="text" required="" placeholder="请填写APPsecret！">
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-lg-2">授权回调页：</label>
													<label  class="control-label col-lg-2">{:sp_get_host()}/index.php</label>
												</div>
												<div class="form-group">
													<label  class="control-label col-lg-2"><a href="http://connect.qq.com/" target="_blank">{:L('CLICK_HERE')}</a></label>
													<label  class="control-label col-lg-2">{:L('GET_QQ_APPKEY_AND_APPSECRET')}</label>
												</div>
											</div>
											<div class="tab-pane" id="B">
												<div class="form-group">
													<label for="sina_key" class="control-label col-lg-2">APPkey</label>
													<div class="col-lg-10">
														<input   class=" form-control" id="sina_key" name="sina_key" minlength="1" value="{$Think.config.THINK_SDK_QQ.APP_KEY}" type="text" required="" placeholder="请填写APPkey！">
													</div>
												</div>
												<div class="form-group">
													<label for="sina_sec" class="control-label col-lg-2">APPsecret</label>
													<div class="col-lg-10">
														<input   class=" form-control" id="sina_sec" name="sina_sec" minlength="1" value="{$Think.config.THINK_SDK_QQ.APP_SECRET}" type="text" required="" placeholder="请填写APPsecret！">
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-lg-2">{:L('CALLBACK_URL')}：</label>
													<label  class="control-label col-lg-2" style="width: auto">{$callback_uri_root}sina</label>
												</div>
												<div class="form-group">
													<label  class="control-label col-lg-2">{:L('CANCEL_CALLBACK_URL')}</label>
													<label  class="control-label col-lg-2">{:sp_get_host()}</label>
												</div>
												<div class="form-group">
													<label  class="control-label col-lg-2"><a href="http://open.weibo.com/" target="_blank">{:L('CLICK_HERE')}</a></label>
													<label  class="control-label col-lg-2">{:L('GET_WEIBO_APPKEY_AND_APPSECRET')}</label>
												</div>
											</div>
											<div class="tab-pane" id="C">

												<div class="form-group">
													<label for="wx_key" class="control-label col-lg-2">APPkey</label>
													<div class="col-lg-10">
														<input   class=" form-control" id="wx_key" name="wx_key" minlength="1" value="{$Think.config.THINK_SDK_QQ.APP_KEY}" type="text" required="" placeholder="请填写APPkey！">
													</div>
												</div>
												<div class="form-group">
													<label for="wx_sec" class="control-label col-lg-2">APPsecret</label>
													<div class="col-lg-10">
														<input   class=" form-control" id="wx_sec" name="sina_sec" minlength="1" value="{$Think.config.THINK_SDK_QQ.APP_SECRET}" type="text" required="" placeholder="请填写APPsecret！">
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-lg-2">{:L('CALLBACK_URL')}：</label>
													<label  class="control-label col-lg-2" style="width: auto">{$callback_uri_root}weixin</label>
												</div>
												<div class="form-group">
													<label  class="control-label col-lg-2">{:L('CANCEL_CALLBACK_URL')}</label>
													<label  class="control-label col-lg-2">{:sp_get_host()}</label>
												</div>
												<div class="form-group">
													<label  class="control-label col-lg-2"><a href="https://open.weixin.qq.com" target="_blank">{:L('CLICK_HERE')}</a></label>
													<label  class="control-label col-lg-2">获取微信登录APPKey及APPsecret</label>
												</div>
											</div>

										</div>
									</div>

									<div class="form-group">
										<div class="col-md-12 text-center clearfix" style="     width: auto;padding-left: 25%;padding-top: 20px;">
											<button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
											<a href="javascript:history.back(-1);" class="btn btn-default">{:L('BACK')}</a>
										</div>
									</div>
								</form>
							</div>

						</div>
					</section>

				</div>
			</div>
		</div>
		<!--footer section start-->
		<footer>
			<admintpl file="copyright"/>
		</footer>
		<!--footer section end-->
	</div>
	<!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>

</body>
</html>
